package com.coolt.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public class AsyncService {

	public static CooltRPCAsync getService() {

		CooltRPCAsync service = (CooltRPCAsync) GWT.create(CooltRPC.class);
		ServiceDefTarget endpoint = (ServiceDefTarget) service;
		String moduleRelativeURL = GWT.getModuleBaseURL() + "CooltRPC";
		endpoint.setServiceEntryPoint(moduleRelativeURL);
		return service;
	}
}
